import router from '@/router';
import { isNullPm } from '@/utils/baseMethods';
import { reactive } from 'vue';

export default function importFunction() {
  const base = reactive<any>({
    skipToBourn: null,
    getDom: null,
  });
  const init = () => {
    if (!isNullPm(router.currentRoute.value.query)) {
      base.getDom = router.currentRoute.value.query;
    }
  };
  const skipToBourn = (param) => {
    router.push(param);
  };
  return {
    base,
    init,
    skipToBourn,
  };
}
